<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
* {
	margin: 0;
	padding: 0;
}
li{
   list-style: none
}
.style6 {
	font: 12px 宋体;
	background-image: url(images/bili.jpg);
	background-repeat: no-repeat;
}
</style>

<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/index.css" type="text/css" rel="stylesheet" />
<!-- 最新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="js/bootstrap.min.js">
</script>

</head>
<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
<script type="text/javascript">	
$(document).ready(function(){
	<!-- 选择全部/全不选-->
	$("#All").click(function(){ 
		if("this.checked"){ 
			$("#fruit :checkbox").prop("checked", true); 
		}else{
			$("#fruit :checkbox").prop("checked", false); 
		}
	}); 
	<!--选择全部-->
	$("#checkAll").click(function() {
		
		$("#fruit :checkbox").prop("checked", true);
	});
	<!--全不选-->
	$("#nothing").click(function() {
		$("#fruit :checkbox").prop("checked", false);
	});
	<!--反选-->
	$("#reverseAll").click(function() {
		$("#fruit :checkbox").each(function(i) {
			$(this).prop("checked", !$(this).prop("checked"));
		});
	});
});
</script>
<body>

	<div
		style="background-color: #778899; padding: 11.5px; position: relative; right: -251px; width: 1604px;">
		
	</div>
	<h3>设置物管权限</h3>
	<div
		style="background-color: #F0F8FF; position: relative; right: -251px; top: width: 1627px;">
		<div style="padding: 60px;">
			<form action="PPsets">
				<table class="table table-bordered"
					style="position: relative; top: -500px; font-size: 25px;">
					<tr>
						<td>
						
						<input type="button" id="checkAll"  value="全选"/>&nbsp;&nbsp;
						<input type="button" id="nothing"  value="全不选"/>&nbsp;&nbsp;
						<input type="button" id="reverseAll"  value="反选"/>&nbsp;&nbsp;
						</td>
					</tr>
					<tr>
						<td>
							<ul id="fruit">
							    <li><input type="hidden" value="0" name="checkbox"/></li>
								<li><input type="checkbox" value="1" name="checkbox"  <c:if test="${premissionRole1.ok==1 }">checked="checked"</c:if>/>业主房屋管理</li>
								<li><input type="checkbox" value="2" name="checkbox"  <c:if test="${premissionRole2.ok==1 }">checked="checked"</c:if>/>投诉管理</li>
								<li><input type="checkbox" value="3" name="checkbox"  <c:if test="${premissionRole3.ok==1 }">checked="checked"</c:if>/>报修管理</li>
								<li><input type="checkbox" value="4" name="checkbox"  <c:if test="${premissionRole4.ok==1 }">checked="checked"</c:if>/>小区通知</li>
								<li><input type="checkbox" value="5" name="checkbox"  <c:if test="${premissionRole5.ok==1 }">checked="checked"</c:if>/>小区信息</li>
								<li><input type="checkbox" value="6" name="checkbox"  <c:if test="${premissionRole6.ok==1 }">checked="checked"</c:if>/>查看小区水电费</li>
								<li><input type="checkbox" value="7" name="checkbox"  <c:if test="${premissionRole7.ok==1 }">checked="checked"</c:if>/>编辑个人信息</li>
							</ul>

						</td>
					</tr>
					<tr>
					   <td><input type="submit" value="保存设置"/>
					   <input type="button" value="返回"/></td>
					</tr>
				</table>
			</form>
		</div>
	</div>


</body>
</html>